set(MODULE baseinfo)

aux_source_directory(. DIRSRCS)
include_directories(
	./
        ../include
        ../thirdparty/jsoncpp/include)

add_definitions(-D_XOPEN_SOURCE)

add_library(${MODULE} ${DIRSRCS})
target_link_libraries(${MODULE} jsoncpp md5cpp transport ntptime)

if(SYSTEM_ARCH STREQUAL "k2" OR SYSTEM_ARCH STREQUAL "k4" OR SYSTEM_ARCH STREQUAL "oldk4")
#target_link_libraries(${MODULE} ht98sc htsc)
else()
target_link_libraries(${MODULE} crypt)
endif()
